<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()	+ path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<jsp:include page="changePwd.jsp" flush="true"/>
<script type="text/javascript">
	var ctx="<%=path%>";  
</script>
<link rel="stylesheet" href="<%=path%>/css/glsmcx.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/css/upload.css" type="text/css" >
<script type="text/javascript" src="<%=path%>/js/controllers/orderexceptionCtrl.js"></script>
<div class="glsmcxWrap">
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">异常订单列表</h3>
			</div> 
			<div class="panel-body clearfix">
				<form method="post" action="#" class="form-horizontal" role="form">
					<!-- 查询开始 -->
					<div class="form-group">
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">订单号：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="orderId" placeholder="输入订单号">
							</div>
						</div>	
						
						<div class="col-lg-31 clearfix">		
						<!-- 是否已解决，1否，2是 -->					
							<label class="control-label labelPart">状态：</label>							
							<div class="colPart">
								<select name="isSolve">
									<option value="">请选择</option>
									<option value="1">未解决</option>
									<option value="2">已解决</option> 
								</select>
							</div> 						
						</div>	 
						 
						<div class="col-lg-34 more clearfix"> 													
							<button type="button" class="searchBtn">查询</button>	
							<button type="button" class="clearBtn">清空</button>					
						</div>
					</div> 
					<div class="table-responsive">
						<table class="table table-bordered check left">
							<thead>
								<tr>  			
									<th>序号</th>
									<th>订单号</th> 
									<th>异常原因</th>
									<th>异常图片</th>  
								    <th>备注</th>
								    <th>处理状态</th>
								    <th>创建时间</th>  
								    <th></th>    
								</tr>
							</thead>
		
							<tbody id="dataBody">
								 
							</tbody>
						</table>
						
						<table class="table2excel table table-bordered hide">
						</table>
					</div>
				</form>
			</div>
		</div>
		<div class="clearfix pageBottom">	
			<div class="record-wrapper page" role="status" aria-live="polite">
				当前<span class="pageNo"> </span>/<span class="totalPages"> </span>页，每页
				<label class="inline">
					<select name="dataTable_length" 
						class="form-control input-sm setTableLength" aria-controls="dataTable">
						<option selected="selected" value="10">10</option>
						<option value="20">20</option>
						<option value="50">50</option>
						<option value="100">100</option>
						<option value="200">200</option>
						<option value="300">300</option>
						<option value="400">400</option>
						<option value="500">500</option>
						<option value="1000">1000</option>
				</select> 
				</label>&nbsp;条记录,共<span class="record-wrapper totalCount">0</span>条记录
			</div>
			<nav>
			<!-- 这里显示分页 -->
				<div id="Pagination" class="pagination"></div>
			</nav>
		</div>
			
	</div>
</div>


<!-- 详情Modal -->
<div class="modal fade modal-edityd" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true" >
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">订单售后详情</h4>
			</div>
			<form class="form-horizontal" novalidate="novalidate" id="orderDetailForm">
				<div class="modal-body"> 
					<div class="form-group">
						<div class="col-lg-31">
							<label class="col-sm-41 control-label" id="orderid-label">订单号：</label>
							<div class="col-sm-81">
								<input type="hidden" class="form-control input-sm" name="id">
								<input type="text" readonly="readonly" class="form-control input-sm" placeholder="" name="orderId">
							</div>
						</div>

						<div class="col-lg-31">
							<label class="col-sm-41 control-label" id="orderid-label">订单金额：</label>
							<div class="col-sm-81">
								<input type="hidden" class="form-control input-sm" name="id">
								<input type="text" readonly="readonly" class="form-control input-sm" placeholder="" name="orderAmount">
							</div>
						</div>
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">售后状态：</label>
							<div class="col-sm-81 dropdown">  
							<!-- 售后状态，1未处理，2处理中，3已完成 -->
								 <select disabled="disabled" name="status" value="" class="form-control">
									<option value="1">未处理</option>
									<option value="2">处理中</option>
									<option value="3">已完成</option>
								</select> 
							</div>
						</div>  
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">申请时间：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm  current-time" readonly name="createTime"> 
							</div>
						</div>
					</div>

					<div class="form-group">
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">售后原因：</label>
							<div class="col-sm-81"> 
							<!-- 售后原因，1错发/漏发，2拒签退回，3丢件，4瘪罐，99其他 -->
								<select disabled="disabled" name="causeType" value="" class="form-control">
									<option value="1">错发/漏发</option>
									<option value="2">拒签退回</option>
									<option value="3">丢件</option>
									<option value="4">瘪罐</option>
									<option value="99">其他</option>
								</select> 
							</div>
						</div>

						<div class="col-lg-31">
							<label class="col-sm-41 control-label">备注：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm " readonly name="remark"> 
							</div>
						</div> 
					</div>

					<!-- <div class="form-group">
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">实物图片：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm" placeholder="0.00" name="receiverIdnumber">
							</div>
						</div>  
					</div>  -->

					<div class="form-group">
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">客服审核：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm" name="serviceAuditStatus" >
							</div>
						</div>
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">审核备注：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm" name="serviceAuditOpinion">
							</div>
						</div> 
						 
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">审核时间：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm " name="serviceAuditTime"> 
							</div>
						</div>  
					</div>
					
					<div class="form-group">
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">物流审核：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm" name="logisticsAuditStatus" >
							</div>
						</div>
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">审核备注：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm" name="logisticsAuditOpinion">
							</div>
						</div> 
						 
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">审核时间：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm " name="logisticsAuditTime"> 
							</div>
						</div>  
					</div> 

					<div class="form-group">
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">寄回快递单号：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm" name="sendBackLogisticsNo" >
							</div>
						</div>
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">数量：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm" name="sendSum">
							</div>
						</div> 
						 
						
						<div class="col-lg-31">
							<label class="col-sm-41 control-label">运费：</label>
							<div class="col-sm-81">
								<input type="text" readonly="readonly" class="form-control input-sm " name="sendFreight"> 
							</div>
						</div>  
					</div>
					
					<div class="form-group"> 
						<div class="col-lg-122" id="receiveraddr1" style="text-align: center">
							<table class="table" style="margin: auto">
								<thead >
									<tr> 
									    <th style="text-align: center;">商品货号</th>
									    <th style="text-align: center;">商品名称</th>
									    <th style="text-align: center;">效期</th>
									    <th style="text-align: center;">数量</th> 
										<th style="text-align: center;">规格</th>
										<th style="text-align: center;">单价</th>
										<th style="text-align: center;">总价</th>  
									</tr>
								</thead>
	
								<tbody id="orderDetailDataBody">
									 
								</tbody>
							</table>
						</div>
					</div> 
			</div> 
			</form>
			<div class="modal-footer  clearfix"> 
			 
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> 
				
			</div>
		</div>
	</div>
</div>
<!-- 详情Modal -->